class EvaluateModel {
  int errno;
  Data data;
  String errmsg;

  EvaluateModel({this.errno, this.data, this.errmsg});

  EvaluateModel.fromJson(Map<String, dynamic> json) {
    errno = json['errno'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    errmsg = json['errmsg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errno'] = this.errno;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['errmsg'] = this.errmsg;
    return data;
  }
}

class Data {
  int small;
  List<CommentList> commentList;
  int big;
  int yes;
  int count;

  Data({this.small, this.commentList, this.big, this.yes, this.count});

  Data.fromJson(Map<String, dynamic> json) {
    small = json['small'];
    if (json['commentList'] != null) {
      commentList = new List<CommentList>();
      json['commentList'].forEach((v) {
        commentList.add(new CommentList.fromJson(v));
      });
    }
    big = json['big'];
    yes = json['yes'];
    count = json['count'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['small'] = this.small;
    if (this.commentList != null) {
      data['commentList'] = this.commentList.map((v) => v.toJson()).toList();
    }
    data['big'] = this.big;
    data['yes'] = this.yes;
    data['count'] = this.count;
    return data;
  }
}

class CommentList {
  UserInfo userInfo;
  String addTime;
  int size;
  String content;

  CommentList({this.userInfo, this.addTime, this.size, this.content});

  CommentList.fromJson(Map<String, dynamic> json) {
    userInfo = json['userInfo'] != null
        ? new UserInfo.fromJson(json['userInfo'])
        : null;
    addTime = json['addTime'];
    size = json['size'];
  
    content = json['content'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.userInfo != null) {
      data['userInfo'] = this.userInfo.toJson();
    }
    data['addTime'] = this.addTime;
    data['size'] = this.size;
   
    data['content'] = this.content;
    return data;
  }
}

class UserInfo {
  String nickName;
  String avatarUrl;

  UserInfo({this.nickName, this.avatarUrl});

  UserInfo.fromJson(Map<String, dynamic> json) {
    nickName = json['nickName'];
    avatarUrl = json['avatarUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['nickName'] = this.nickName;
    data['avatarUrl'] = this.avatarUrl;
    return data;
  }
}